﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="messageAdm.aspx.cs" Inherits="tokenTeam_messageAdm" %>
<%@ Register Assembly="pager" Namespace="wbh" TagPrefix="uc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>办公自动化栏目管理系统-拓垦团队</title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <link href="webImgs/msg.css" rel="stylesheet" type="text/css" />
    <link href="../style/base.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="mainFrame" >
        <div class = "titleBar">您现在的位置：办公自动化 | 拓垦团队留言板管理>> </div>
 
        <div id = "mainContent">
            <asp:Repeater ID="rptMsgBox" OnItemDataBound="repMsgBox_ItemDataBound" runat="server">
            <HeaderTemplate><ul></HeaderTemplate>
            <ItemTemplate>
                <li>
                    <div class="messageBox">
                        <table class="message" >
                            <tr>
                                <td style="width:35%;"><span class=""><%# Helper.Function.StringLeftAlign(Eval("title").ToString(), 15, "...")%></span></td>
                                <td style="width:20%;"><span><%# Helper.Function.StringLeftAlign(Eval("nickname").ToString(), 15, "...")%></span></td>
                                <td style="width:20%;" ><div ><%# Helper.Function.StringLeftAlign(Eval("email").ToString(), 15, "...")%></div></td>
                                <td style="width:16%;"><span class=""><%#Helper.Function.DateTimeSafeConvert(Eval("time_add")).ToString("yyyy-M-d mm:ss") %></span></td>
                                <td style="width:8%;">
                                    <asp:CheckBox ID="ckbDelete" runat="server"/>
                                    <asp:Label ID="lbMsgId" Text='<%# Eval("id").ToString()%>' Visible="false" runat="server"></asp:Label>
                                </td>  
                            </tr>
                            <tr>
                                <td colspan="4"><div class="content_Box"><%#Helper.Function.NormalizeJSString(Server.HtmlEncode(Eval("content").ToString()))%></div></td>
                                <td >
                                    <p><asp:ImageButton ID="ImageButton1" ImageUrl ="webImgs/del_msg.jpg" CssClass="imgButton"  runat="server" CausesValidation="False" AlternateText="删除" OnClientClick="return confirm('你是否真的删除？');" OnClick="msgDelett_Click"  CommandArgument='<%#Eval("id") %>' /></p>
                                    <p><asp:ImageButton ID="ImageButton2" ImageUrl ="webImgs/reply_msg.jpg" CssClass="imgButton"  runat="server" CausesValidation="False" AlternateText="回复" OnClick="msgReply_Click"  CommandArgument='<%#Eval("id") %>' /></p>
                                   
                                </td>
                            </tr>
                        </table>
                        <asp:Repeater ID="rpt_MsgRelpy" runat="server">
                            <ItemTemplate>
                                <table class=""  >
                                    <tr>
                                        <td style="width:5%" ></td>
                                        <td style="width:90%"><span class="">回复时间：<%#Helper.Function.DateTimeSafeConvert(Eval("reply_time")).ToString("yyyy-M-d mm:ss") %></span></td>
                                        
                                        <td style="width:5%" ><p><asp:ImageButton ID="ImageButton3" ImageUrl ="webImgs/del_msg.jpg" CssClass="imgButton"  runat="server" alt="删除"  CausesValidation="False" OnClick="replyDelet_Click" OnClientClick="return confirm('你是否真的删除？');" CommandArgument='<%#Eval("id") %>'/></p></td>
                                    </tr>
                                    <tr> 
                                        <td ></td>   
                                        <td  colspan="2"><div class="content_Box"><%#Helper.Function.NormalizeJSString(Server.HtmlEncode(Eval("content").ToString()))%></div></td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:Repeater> 
                    </div>
                </li>
            </ItemTemplate>
            <FooterTemplate></ul></FooterTemplate>
        </asp:Repeater>
       </div>
       <!-- 分页部分(下) -->
       <div id="pagefoot">
        <div class="left">
            <ul id="page_button" >
                <li><asp:ImageButton ID="imgbtDelSelected" CssClass="bigButton" ImageUrl ="webImgs/del_checked.jpg" runat="server" CausesValidation="False" AlternateText="删除选中项" OnClick="imgbtDelSelected_Click"   /></li>
                <li><asp:ImageButton ID="imgbtDelAll" CssClass="bigButton" ImageUrl ="webImgs/del_all.jpg" runat="server" CausesValidation="False" AlternateText="删除当前页" OnClick="imgbtDelAll_Click"  /></li>
            </ul>
        </div>
        <div class=""> 
            <div id="spPager">
                <uc:SimplePager CssGotoButton="gotobt" CssGotoPanel="goto" PageSize="8" StringFormatGotoLabelHtml="转到第{0}页"
                        StringFormatPagerButton="<span title='转到第{0}页'>{0}</span>" StringFormatCurrentPagerButton="<a class='current'>{0}</a>"
                        CssClass="pagination" InnerGroupTagBlock="<ul>{0}</ul>" InnerItemTagBlock="<li>{0}</li>"
                        ID="spPager" runat="server" OnPageIndexChanging="SimplePager1_PageIndexChanging"
                        UrlPaging="False">
                </uc:SimplePager>
	        </div>
        </div>
        
       </div>
        
       
        <div class="clear"></div>
      
        <!--留言提交部分-->
        <div id="replyBox">
	        <div class="formRow" id="sendTitle">
                <span class="title">写下您的回复 >>：</span>
            </div>
            <div class="formRow">
                <table class="replyTb">
                    <tr>
                        <td style="width:60%"><span class="title">留言主题：</span><asp:Label id="lbMsgTitle"  runat="server"></asp:Label></td>
                        <td style="width:40%"><span class="title">留言时间：</span><asp:Label id="lbMsgTime" runat="server"></asp:Label></td>
                    </tr>
                </table>
          
                <asp:Label ID="lbMsgId" runat="server" Visible="false"></asp:Label>
            </div>
        <div class="formRow">
          <div class="title" >留言内容</div>
          <div class="edt">

            <asp:Label ID="lbMsgContent" runat="server" width="700px" TextMode="MultiLine" CssClass="edtBox"></asp:Label>
          </div>
        </div>
       <div class="formRow">
          <div class="title">回复内容</div>
          <div class="edt">
            <asp:TextBox ID="tbContent" runat="server" Height="150" TextMode="MultiLine"
                                Width="700"  CssClass="edtBox"  ></asp:TextBox>
            <asp:RequiredFieldValidator ID="Requiredfieldvalidator2" ControlToValidate="tbContent"
                                Display="dynamic" Text="请填写内容！" runat="server" />
          </div>
        </div>
        <div class="formRow">
            <div class="submit">
             	<asp:ImageButton ID="ibSubmit" ImageUrl ="webImgs/subimt_msg.jpg" runat="server" OnClick="ibSubmit_Click"/>
            </div>
			
        </div>
    </div>
    </div>
    </form>
</body>
</html>
